//模拟数据
import Mock from 'mockjs';
//引入productDetail.json
import productDetail from './productDetail.json';

//通过Mock对象模拟出虚拟数据
Mock.mock("/mock/productDetail",{code:200,data:productDetail});